package com.ms.web.config;

import com.ms.web.componet.IBeanUtil;
import com.ms.web.componet.SnowflakeUtil;
import com.ms.web.exception.GlobalExceptionHandler;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ImportAutoConfiguration({JacksonConfig.class, CommonBeanConfiguration.class, ImportantBeanPostProcessor.class})
public class AutoWebConfiguration {

    @Bean
    public GlobalExceptionHandler getGlobalExceptionHandler() {
        return new GlobalExceptionHandler();
    }

    @Bean
    public SnowflakeUtil getSnowflakeUtil() {
        return new SnowflakeUtil();
    }

    @Bean
    public IBeanUtil getIBeanUtil() {
        return new IBeanUtil();
    }

}
